import request from '@/utils/request'

// 查询Quiz列表
export function listQuiz(query) {
  return request({
    url: '/system/quiz/list',
    method: 'get',
    params: query
  })
}

// 查询Quiz详细
export function getQuiz(id) {
  return request({
    url: '/system/quiz/' + id,
    method: 'get'
  })
}

// 新增Quiz
export function addQuiz(data) {
  return request({
    url: '/system/quiz',
    method: 'post',
    data: data
  })
}

// 修改Quiz
export function updateQuiz(data) {
  return request({
    url: '/system/quiz',
    method: 'put',
    data: data
  })
}

// 删除Quiz
export function delQuiz(id) {
  return request({
    url: '/system/quiz/' + id,
    method: 'delete'
  })
}
